

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<script type="text/javascript" src="helpman_topicinit.js"></script>

<title>Package Diagram [Enterprise Architect User Guide]</title>

<meta name="keywords" content="Enterprise Architect, Sparx Systems, UML, Package Diagram,Package Diagram Description,Package Diagram Example,Package Diagram Elements And Connectors,Diagram,Diagram Package,Element,Element Properties, Edit From Package">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />

<link type="text/css" href="default.css" rel="stylesheet" />
<style type="text/css">
  A, A:Visited
  {
    color: #00F;
  }

  A:Active, A:Hover
  {
    color: #F00;
  }

  OL
  {
    margin: 5px 0 5px 48px;
  }

  UL
  {
    margin-bottom: 3px;
    margin-top: 0;
  }

  #nsr
  {
    background-color: #D4DFFF;
  }

  #nsr A
  {
    text-decoration: none;
  }

  #mainbody
  {
    padding: 8px;
  }

  .p_BodyText
  {
    padding: 5px 0;
  }
</style>



<style type="text/css" media="screen">
  BODY
  {
    background-color: #FFFFFF;
  }

  #nsr
  {
    padding: 6px 6px 0 6px;
    border-bottom: none;
    vertical-align: top;
    z-index: 2;
    visibility: visible;
    left: 0;
    top: 0;
    position: absolute;
  }

  #mainbody
  {
    left: 0;
    top: 0;
    margin: 0;
    position: absolute;
    padding: 10px;
    overflow: auto;
    height: 100%;
    z-index: 1;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-attachment: fixed;
  }
</style>

<style type="text/css" media="print">
  #nsr
  {
    visibility: none;
  }

  #mainbody
  {
    overflow: visible;
  }
</style>
<script type="text/javascript" language="JavaScript" src="nonscroll.js"></script>

</head>
<body scroll="no">

<div id="page">



        <div id="content">
          <div id="content-inner">
          



  
          <div id="nsr">
            <table border="0" cellspacing="0" cellpadding="4" width="100%">
              <tr valign="top">
                <td align="left">
  


                  <p class="p_Heading1"><span class="f_Heading1">Package Diagram</span></p>



  
                </td>
                <td align="right">
                  <a href="introduction.htm" onmouseover="document.images.main.src='button_main_h.gif'" onmouseout="document.images.main.src='button_main.gif'">
                    <img name="main" src="button_main.gif" border=0 alt="Return to Introduction">
                  </a>&nbsp;
    
                  <a href="structuraldiagrams.htm" onmouseover="document.images.prev.src='button_prev_h.gif'" onmouseout="document.images.prev.src='button_prev.gif'">
                    <img name=prev src="button_prev.gif" border=0 alt="Previous page" />
                  </a>&nbsp;
    
    
    
                  <a href="classdiagram.htm" onmouseover="document.images.next.src='button_next_h.gif'" onmouseout="document.images.next.src='button_next.gif'">
                    <img name=next src="button_next.gif" border=0 alt="Next page" />
                  </a>
    
    
                </td>
              </tr>
            </table>
          </div>
          <div id="mainbody">
  


                <p class="p_BodyText"><span class="f_BodyText" style="font-style: italic;">Package diagrams</span><span class="f_BodyText"> depict the organization of model elements into packages and the dependencies amongst them, including package imports and package extensions. They also provide a visualization of the corresponding namespaces.</span></p>
<p class="p_BodyText"><span class="f_BodyText">The following example demonstrates a basic Package diagram.</span></p>
<p class="p_TextIndentedL2"><img src="example%20of%20a%20package%20diagram.png" width="646" height="334" border="0" alt="Example of a Package Diagram"></p>
<p class="p_BodyText"><span class="f_BodyText">The nesting connector between </span><span class="f_BodyText" style="font-style: italic;">ConnSeq</span><span class="f_BodyText"> and </span><span class="f_BodyText" style="font-style: italic;">Controller</span><span class="f_BodyText"> reflects what the package contents reveal. Package contents can be listed by clicking on the diagram background to display the diagram's </span><span class="f_UIControl"><a href="setappearanceoptions.htm">Properties</a></span><span class="f_BodyText"><a href="setappearanceoptions.htm"> dialog</a>, selecting the </span><span class="f_UIControl">Elements</span><span class="f_BodyText"> tab and selecting the </span><span class="f_MenuKeyField">Package Contents</span><span class="f_BodyText"> checkbox.</span></p>
<p class="p_BodyText"><span class="f_BodyText">The &laquo;</span><span class="f_BodyText" style="font-style: italic;">import</span><span class="f_BodyText">&raquo; connector indicates that the elements within the target Integer package, which in this example is the single Class </span><span class="f_BodyText" style="font-style: italic;">Integer</span><span class="f_BodyText">, are imported into the package </span><span class="f_BodyText" style="font-style: italic;">Controller</span><span class="f_BodyText">. The </span><span class="f_BodyText" style="font-style: italic;">Controller</span><span class="f_BodyText">'s namespace gains access to the </span><span class="f_BodyText" style="font-style: italic;">Integer</span><span class="f_BodyText"> Class; the </span><span class="f_BodyText" style="font-style: italic;">Integer</span><span class="f_BodyText"> namespace is not affected.</span></p>
<p class="p_BodyText"><span class="f_BodyText">The &laquo;</span><span class="f_BodyText" style="font-style: italic;">merge</span><span class="f_BodyText">&raquo; connector indicates that the package </span><span class="f_BodyText" style="font-style: italic;">Controller</span><span class="f_BodyText">'s elements are imported into </span><span class="f_BodyText" style="font-style: italic;">GenApply</span><span class="f_BodyText">, including </span><span class="f_BodyText" style="font-style: italic;">Controller</span><span class="f_BodyText">'s nested and imported contents. If an element already exists within </span><span class="f_BodyText" style="font-style: italic;">GenApply</span><span class="f_BodyText">, such as </span><span class="f_BodyText" style="font-style: italic;">Loader</span><span class="f_BodyText"> and </span><span class="f_BodyText" style="font-style: italic;">Time</span><span class="f_BodyText">, these elements' definitions are expanded by those included in the package </span><span class="f_BodyText" style="font-style: italic;">Controller</span><span class="f_BodyText">. All elements added or updated by the merge are noted by a generalization relationship back to that package.</span></p>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 5px 0px 5px 13px;"><table cellspacing="0" cellpadding="2" border="0" style="border: none; border-spacing:0px;">
<tr style="text-align:left;vertical-align:bottom;">
<td valign="bottom" width="955" bgcolor="#efeff7" style="width:955px; background-color:#efeff7;"><p class="p_TiporNote" style="border-top: none; border-right: none; border-left: none;"><span class="f_TiporNote">Notes:</span></p>
</td>
</tr>
<tr style="text-align:left;">
<td width="955" bgcolor="#f7f7ff" style="width:955px; background-color:#f7f7ff;"><ul style="text-indent: 0px; margin-left: 14px; list-style-position: outside;">
<li><span class="f_TiporNoteText">Private elements within a package cannot be imported or merged.</span></li>
<li><span class="f_TiporNoteText">If you click on an element listed in a package, and then double-click, you can display and edit the <a href="objectproperties.htm">element properties</a>.</span></li>
</ul>
</td>
</tr>
</table>
</div>
<p class="p_SubHeadingL1"><span class="f_SubHeadingL1">Toolbox Elements and Connectors</span></p>
<p class="p_BodyText"><span class="f_BodyText">Select Package diagram elements and connectors from the </span><span class="f_UIControl"><a href="structuralgroup.htm">Class</a></span><span class="f_BodyText"><a href="structuralgroup.htm"> pages</a> of the Enterprise Architect UML</span><span class="f_UIControl"> Toolbox</span><span class="f_BodyText" style="font-style: italic;">.</span></p>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 5px 0px 5px 13px;"><table cellspacing="0" cellpadding="2" border="0" style="border: none; border-spacing:0px;">
<tr style="text-align:left;vertical-align:bottom;">
<td valign="bottom" width="955" bgcolor="#efeff7" style="width:955px; background-color:#efeff7;"><p class="p_TiporNote" style="border-top: none; border-right: none; border-left: none;"><span class="f_TiporNote">Tip:</span></p>
</td>
</tr>
<tr style="text-align:left;">
<td width="955" bgcolor="#f7f7ff" style="width:955px; background-color:#f7f7ff;"><p class="p_TiporNoteText"><span class="f_TiporNoteText">Click on the following elements and connectors for more information.</span></p>
</td>
</tr>
</table>
</div>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 5px 0px 5px 13px;"><table cellspacing="0" cellpadding="0" border="0" style="border: none; border-spacing:0px; border-collapse: collapse;">
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="198" bgcolor="#e3e6ed" style="width:198px; background-color:#e3e6ed; border: solid 1px #000000;"><p class="p_Tableheader"><span class="f_Tableheader">Package Diagram Elements</span></p>
</td>
<td valign="top" width="210" bgcolor="#e3e6ed" style="width:210px; background-color:#e3e6ed; border: solid 1px #000000;"><p class="p_Tableheader"><span class="f_Tableheader">Package Diagram Connectors</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="198" style="width:198px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="package.htm"><img src="e_package.png" width="167" height="26" border="0" alt="e_Package"></a></p>
</td>
<td valign="top" width="210" style="width:210px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="associate.htm"><img src="c_associate.png" width="168" height="24" border="0" alt="c_Associate"></a></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="198" style="width:198px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="class.htm"><img src="e_class.png" width="168" height="23" border="0" alt="e_Class"></a></p>
</td>
<td valign="top" width="210" style="width:210px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="generalize.htm"><img src="c_generalize.png" width="167" height="23" border="0" alt="c_Generalize"></a></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="198" style="width:198px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="interface.htm"><img src="e_interface.png" width="168" height="24" border="0" alt="e_Interface"></a></p>
</td>
<td valign="top" width="210" style="width:210px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="compose.htm"><img src="c_compose.png" width="169" height="23" border="0" alt="c_Compose"></a></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="198" style="width:198px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="table.htm"><img src="e_table.png" width="170" height="24" border="0" alt="e_Table"></a></p>
</td>
<td valign="top" width="210" style="width:210px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="aggregate.htm"><img src="c_aggregate.png" width="168" height="24" border="0" alt="c_Aggregate"></a></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="198" style="width:198px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="enumeration_element.htm"><img src="e_enumeration.png" width="167" height="25" border="0" alt="e_enumeration"></a></p>
</td>
<td valign="top" width="210" style="width:210px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="associationclass.htm"><img src="c_associationclass.png" width="168" height="23" border="0" alt="c_AssociationClass"></a></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="198" style="width:198px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="signal_element.htm"><img src="e_signal.png" width="168" height="23" border="0" alt="e_signal"></a></p>
</td>
<td valign="top" width="210" style="width:210px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="assembly.htm"><img src="c_assembly.png" width="167" height="19" border="0" alt="c_Assembly"></a></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="198" style="width:198px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="n_aryassociation.htm"><img src="c_association.png" width="168" height="24" border="0" alt="c_Association"></a></p>
</td>
<td valign="top" width="210" style="width:210px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="realise.htm"><img src="c_realize.png" width="168" height="22" border="0" alt="c_Realize"></a></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="198" style="width:198px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">&nbsp;</span></p>
</td>
<td valign="top" width="210" style="width:210px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="nesting.htm"><img src="c_nesting.png" width="169" height="22" border="0" alt="c_Nesting"></a></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="198" style="width:198px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">&nbsp;</span></p>
</td>
<td valign="top" width="210" style="width:210px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="pkgmerge.htm"><img src="c_pkgmerge.png" width="168" height="22" border="0" alt="c_PkgMerge"></a></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="198" style="width:198px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">&nbsp;</span></p>
</td>
<td valign="top" width="210" style="width:210px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="pkgimport.htm"><img src="c_pkgimport.png" width="168" height="26" border="0" alt="c_PkgImport"></a></p>
</td>
</tr>
</table>
</div>




            </div>
          </div>
        </div>



</div>


</body>
</html>
